app.factory('validateCodeService', [ '$resource', function($resource) {
    return $resource( '/validatecode/:action',{
        action : '@action'
    },{
        checkverify : {
            method : 'GET',
            isArray : true
        }
    });
} ]);